package map;

import java.util.HashMap;
import java.util.LinkedHashMap;
public class LinkedHashMapDemo {
    public static void main(String[] args) {
        HashMap<String,Integer> map=new LinkedHashMap<>(10,0.75f,true);
        map.put("语文",99);
        map.put("数学",100);
        map.put("英语",88);
        map.put("物理",96);
        map.put("化学",99);
        System.out.println(map);
        Integer value=map.get("数学");
        System.out.println(value);
        System.out.println(map);
    }
}
